package com.ruoyi.housing.service.impl;

import java.util.List;

import com.ruoyi.common.core.domain.pojo.House;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.housing.mapper.HouseMapper;
import com.ruoyi.housing.service.IHouseService;

/**
 * 看房信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-05-15
 */
@Service
public class HouseServiceImpl implements IHouseService 
{
    @Autowired
    private HouseMapper houseMapper;

    /**
     * 查询看房信息
     * 
     * @param id 看房信息主键
     * @return 看房信息
     */
    @Override
    public House selectHouseById(Long id)
    {
        return houseMapper.selectHouseById(id);
    }

    /**
     * 查询看房信息列表
     * 
     * @param house 看房信息
     * @return 看房信息
     */
    @Override
    public List<House> selectHouseList(House house)
    {
        return houseMapper.selectHouseList(house);
    }

    /**
     * 新增看房信息
     * 
     * @param house 看房信息
     * @return 结果
     */
    @Override
    public int insertHouse(House house)
    {
        return houseMapper.insertHouse(house);
    }

    /**
     * 修改看房信息
     * 
     * @param house 看房信息
     * @return 结果
     */
    @Override
    public int updateHouse(House house)
    {
        return houseMapper.updateHouse(house);
    }

    /**
     * 批量删除看房信息
     * 
     * @param ids 需要删除的看房信息主键
     * @return 结果
     */
    @Override
    public int deleteHouseByIds(Long[] ids)
    {
        return houseMapper.deleteHouseByIds(ids);
    }

    /**
     * 删除看房信息信息
     * 
     * @param id 看房信息主键
     * @return 结果
     */
    @Override
    public int deleteHouseById(Long id)
    {
        return houseMapper.deleteHouseById(id);
    }
}
